package com.hh.feign.hystrix;

import com.hh.es.ProdEs;
import com.hh.feign.UserCollectionProdFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author 辉辉 2022/8/19 17:10
 */
@Component
@Slf4j
public class UserCollectionProdFeignHystrix implements UserCollectionProdFeign {
    /**
     * 根据ids查询商品信息
     * 调用失败
     *
     * @param prodIds
     * @return
     */
    @Override
    public List<ProdEs> findProdEsByIds(List<Long> prodIds) {
        log.error("远程调用根据商品ids查询商品信息失败{}", prodIds);
        return null;
    }
}
